package com.example.exam.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author author
 * @since 2024-03-28
 */
@TableName("exam.user_roles")
@Data
public class UserRole implements Serializable {
    public static final Integer ADMIN = 1;
    public static final Integer TEACHER = 2;
    public static final Integer STUDENT = 3;
    @TableField("user_id")
    private Integer userId;

    @TableField("role_id")
    private Integer roleId;

    @Override
    public String toString() {
        return "Userroles{" +
                "userId=" + userId +
                ", roleId=" + roleId +
                "}";
    }
}
